package Test03;
/**
 *士兵类
 */
public class Soldier extends People implements Defend{
    public Soldier(String kind, String name, int level,String enemy) {
        super(kind, name, level,enemy);
    }

    Doctor doctor = new Doctor("医生","阿吊",18,"");
    public void attack(){
        System.out.println("");
    }
    @Override
    public void intor() {
        super.intor();
    }
    public void defend(){
        System.out.println("Lv" + this.getLevel()+ "的" +this.getName() + this.getKind()
                + "抵御了" + this.attack() + "的攻击");
    }

}
